package com.example.exampleproject.entity;

import java.util.List;

public class Weather {

    /**
     * {
     * "code": 0,
     * "data": {
     * "city": {
     * "cityId": 284609,
     * "counname": "中国",
     * "name": "东城区",
     * "pname": "北京市"
     * },
     * "forecast": [
     * {
     * "conditionDay": "多云",
     * "conditionIdDay": "1",
     * "conditionIdNight": "31",
     * "conditionNight": "多云",
     * "predictDate": "2016-09-01",
     * "tempDay": "27",
     * "tempNight": "18",
     * "updatetime": "2016-09-01 09:07:08",
     * "windDirDay": "西北风",
     * "windDirNight": "西北风",
     * "windLevelDay": "3",
     * "windLevelNight": "2"
     * },
     * {
     * "conditionDay": "多云",
     * "conditionIdDay": "1",
     * "conditionIdNight": "31",
     * "conditionNight": "多云",
     * "predictDate": "2016-09-02",
     * "tempDay": "27",
     * "tempNight": "20",
     * "updatetime": "2016-09-01 09:07:08",
     * "windDirDay": "北风",
     * "windDirNight": "东南风",
     * "windLevelDay": "2",
     * "windLevelNight": "1"
     * },
     * {
     * "conditionDay": "多云",
     * "conditionIdDay": "1",
     * "conditionIdNight": "31",
     * "conditionNight": "多云",
     * "predictDate": "2016-09-03",
     * "tempDay": "28",
     * "tempNight": "20",
     * "updatetime": "2016-09-01 09:07:08",
     * "windDirDay": "南风",
     * "windDirNight": "东风",
     * "windLevelDay": "2",
     * "windLevelNight": "2"
     * }
     * ]
     * },
     * "msg": "success",
     * "rc": {
     * "c": 0,
     * "p": "success"
     * }
     * }
     */

    private City city;

    private List<Forecast> forecast;

    public Weather(City city, List<Forecast> forecast) {
        this.city = city;
        this.forecast = forecast;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    public List<Forecast> getForecast() {
        return forecast;
    }

    public void setForecast(List<Forecast> forecast) {
        this.forecast = forecast;
    }

    private static class City {

        public City(String cityId, String counname, String name, String pname) {
            this.cityId = cityId;
            this.counname = counname;
            this.name = name;
            this.pname = pname;
        }

        private String cityId;
        private String counname;
        private String name;
        private String pname;

        public String getCityId() {
            return cityId;
        }

        public void setCityId(String cityId) {
            this.cityId = cityId;
        }

        public String getCounname() {
            return counname;
        }

        public void setCounname(String counname) {
            this.counname = counname;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPname() {
            return pname;
        }

        public void setPname(String pname) {
            this.pname = pname;
        }
    }

    private static class Forecast {

        private String conditionDay;

        private String conditionIdDay;

        private String conditionIdNight;

        private String conditionNight;

        private String predictDate;

        private String tempDay;

        private String tempNight;

        private String updatetime;

        private String windDirDay;

        private String windDirNight;

        private String windLevelDay;

        private String windLevelNight;

        public Forecast(String conditionDay, String conditionIdDay, String conditionIdNight, String conditionNight, String predictDate, String tempDay,
                        String tempNight, String updatetime, String windDirDay, String windDirNight, String windLevelDay, String windLevelNight) {
            this.conditionDay = conditionDay;
            this.conditionIdDay = conditionIdDay;
            this.conditionIdNight = conditionIdNight;
            this.conditionNight = conditionNight;
            this.predictDate = predictDate;
            this.tempDay = tempDay;
            this.tempNight = tempNight;
            this.updatetime = updatetime;
            this.windDirDay = windDirDay;
            this.windDirNight = windDirNight;
            this.windLevelDay = windLevelDay;
            this.windLevelNight = windLevelNight;
        }

        public String getConditionDay() {
            return conditionDay;
        }

        public void setConditionDay(String conditionDay) {
            this.conditionDay = conditionDay;
        }

        public String getConditionIdDay() {
            return conditionIdDay;
        }

        public void setConditionIdDay(String conditionIdDay) {
            this.conditionIdDay = conditionIdDay;
        }

        public String getConditionIdNight() {
            return conditionIdNight;
        }

        public void setConditionIdNight(String conditionIdNight) {
            this.conditionIdNight = conditionIdNight;
        }

        public String getConditionNight() {
            return conditionNight;
        }

        public void setConditionNight(String conditionNight) {
            this.conditionNight = conditionNight;
        }

        public String getPredictDate() {
            return predictDate;
        }

        public void setPredictDate(String predictDate) {
            this.predictDate = predictDate;
        }

        public String getTempDay() {
            return tempDay;
        }

        public void setTempDay(String tempDay) {
            this.tempDay = tempDay;
        }

        public String getTempNight() {
            return tempNight;
        }

        public void setTempNight(String tempNight) {
            this.tempNight = tempNight;
        }

        public String getUpdatetime() {
            return updatetime;
        }

        public void setUpdatetime(String updatetime) {
            this.updatetime = updatetime;
        }

        public String getWindDirDay() {
            return windDirDay;
        }

        public void setWindDirDay(String windDirDay) {
            this.windDirDay = windDirDay;
        }

        public String getWindDirNight() {
            return windDirNight;
        }

        public void setWindDirNight(String windDirNight) {
            this.windDirNight = windDirNight;
        }

        public String getWindLevelDay() {
            return windLevelDay;
        }

        public void setWindLevelDay(String windLevelDay) {
            this.windLevelDay = windLevelDay;
        }

        public String getWindLevelNight() {
            return windLevelNight;
        }

        public void setWindLevelNight(String windLevelNight) {
            this.windLevelNight = windLevelNight;
        }
    }

}
